import request from '@/utils/request'
/** 注入压力预测API开始 */
export function addPredictionPressure(data) {
  return request({
    url: '/api/prediction/predictionpressure/addPredictionPressure',
    method: 'post',
    needLoading: true,
    data
  })
}
export function updatePredictionPressure(data) {
  return request({
    url: '/api/prediction/predictionpressure/updatePredictionPressure',
    method: 'put',
    needLoading: true,
    data
  })
}
export function getPressureDetail(data) {
  return request({
    url: '/api/prediction/predictionpressure/getPressureDetail',
    method: 'get',
    params: {
      id: data
    }
  })
}
export function calculatePredictionPressure(data) {
  return request({
    url: '/api/prediction/predictionpressure/calculatePredictionPressure',
    method: 'post',
    params: data
  })
}
export function calculatePredictionPressure2(data) {
  return request({
    url: '/api/prediction/predictionpressure/calculatePredictionPressure2',
    method: 'post',
    params: data
  })
}
/** 注入压力预测API结束 */
/** 注入参数优化API开始 */
export function addPredictionOptimization(data) {
  return request({
    url: '/api/prediction/predictionoptimization/addPredictionOptimization',
    method: 'post',
    needLoading: true,
    data
  })
}
export function updatePredictionOptimization(data) {
  return request({
    url: '/api/prediction/predictionoptimization/updatePredictionOptimization',
    method: 'put',
    needLoading: true,
    data
  })
}
export function getOptimizationDetail(data) {
  return request({
    url: '/api/prediction/predictionoptimization/getOptimizationDetail',
    method: 'get',
    params: {
      id: data
    }
  })
}
export function calculatePredictionOptimization(data) {
  return request({
    url: '/api/prediction/predictionoptimization/calculatePredictionOptimization',
    method: 'post',
    params: data
  })
}
/** 注入参数优化API结束 */

